<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="org.limp.mine.StringTool"%>
<%@ page import="jt.classic.app.util.UserUtil"%>
<%
	String context = jt.classic.system.ISystem.getContextPath();
	String user_id = UserUtil.getSessionUserId(request);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>新增车辆申请单</title>
</head>
<jsp:include page="../../head.jsp"></jsp:include>
<script language="javascript"
	src="<%=context%>/resources/common/js/common.js"></script>

<link rel="stylesheet" type="text/css" href="<%=context%>/system/group/css/groupmanage.css" ></link>
<script type="text/javascript" src="<%=context %>/system/group/js/groupcombo4jsp.js"></script>
<script type="text/javascript" src="<%=context %>/system/object/js/page4neu.js"></script>
<script type="text/javascript" src="<%=context %>/system/dataindex/js/ditree4jsp.js"></script>
<script type="text/javascript" src="<%=context %>/system/object/js/init4core.js"></script>
<script>
   function init(){ 
   
   /**
   *向父窗口添加
   */
    function addsp(ids,names){ 
     //document.form1.ids.value = ids;
     var n = names.split(",");
     var d = ids.split(",");
     var txt = "";
     for(var i=0;i<n.length;i++){
         txt += " <div id='"+d[i]+"' dtype='sp_obj' dname='"+n[i]+"'>" 
         + n[i] + "&nbsp;&nbsp;<span title='删除' style='cursor:hand;' onclick=\"javascript:handleRemove('"+d[i]+"');\">×</span></div>";
     }
     var fs_clsqd = document.getElementById("fs_clsqd");
     fs_clsqd.innerHTML = fs_clsqd.innerHTML + txt;
     }
     }
</script>
<script src="<%=context%>/app/clgl/clsqd/js/myjs.js"></script>
<script src="<%=context%>/app/js/mycommon.js"></script>
<body onload="init()">
<form id="form1" name="form1" method="post"
	action="<%=context%>/app/clsqd.do?method=save">
<div>
<input type="button" class="button0"
			name="button0" value=" 保 存 " onclick="javascript:handleSubmit();" />
</div>	
<fieldset>
<legend>车辆申请单</legend>
<table class="tab4edit" width="800" align="center">
	<tr style="display:none">
		<td class="td1" width="150">&nbsp;车单号</td>
		<td><label><input readonly name="clsqd_id" class="box3"
			type="text" id="clsqd_id" /></label></td>
	</tr>
	<tr>
		<td class="td1" width="150">&nbsp;用车单位</td>
		<td> <input type="hidden" name="clsqd_ycdw" id="clsqd_ycdw" value="" special="gu" select="group" root="root" guname="clsqd_ycdw_mc"/>
    		<input type="hidden" name="clsqd_ycdw_mc" id="clsqd_ycdw_mc" value=""/> </td>
	</tr>
	<tr>
		<td class="td1" width="150">&nbsp;用车人</td>
		<td>
			<input type="hidden" name="clsqd_yxr" id="clsqd_yxr" value="" special="gu" select="user" root="root" guname="clsqd_yxr_mc"/>
    		<input type="hidden" name="clsqd_yxr_mc" id="clsqd_yxr_mc" value=""/>
    		</td>
	</tr>
	<tr>
		<td class="td1" width="150">&nbsp;电话</td>
		<td><label><input name="clsqd_dh" class="box3"
			type="text" id="clsqd_dh" /></label></td>
	</tr>
	<tr>
		<td class="td1" width="150">&nbsp;用车时间起</td>
		<td><label><input name="clsqd_ycsjq" class="box3"
			type="text" id="clsqd_ycsjq" onclick="HS_setDate(this)" /></label></td>
	</tr>
	<tr>
		<td class="td1" width="150">&nbsp;用车时间止</td>
		<td><label><input name="clsqd_ycsjz" class="box3"
			type="text" id="clsqd_ycsjz" onclick="HS_setDate(this)" /></label></td>
	</tr>
	<tr>
		<td class="td1" width="150">&nbsp;目的地</td>
		<td><label><input name="clsqd_mdd" class="box3"
			type="text" id="clsqd_mdd" /></label></td>
	</tr>
	<tr>
		<td class="td1" width="150">&nbsp;出车时间</td>
		<td><label><input name="clsqd_ccsj" class="box3"
			type="text" id="clsqd_ccsj" onclick="HS_setDate(this)" /></label></td>
	</tr>
	<tr>
		<td class="td1" width="150">&nbsp;车辆数</td>
		<td><label><input name="clsqd_cls" class="box3"
			type="text" id="clsqd_cls" /></label></td>
	</tr>
	<tr style="display:none">
		<td class="td1" width="150">&nbsp;状态</td>
		<td><label><input name="clsqd_zt" class="box3"
			type="text" id="clsqd_zt" value='1' /></label></td>
	</tr>
	<tr style="display:none">
		<td class="td1" width="150">&nbsp;提交人</td>
		<td><label><input name="clsqd_tjr" class="box3"
			type="text" id="clsqd_tjr" value=<%=user_id%> /></label></td>
	</tr>
	<tr>
		<td class="td1" width="150">&nbsp;备注</td>
		<td><label><input name="clsqd_bz" class="box3"
			type="text" id="clsqd_bz" /></label></td>
	</tr>

	<tr style="display:none">
		<td class="td1"  valign="top">&nbsp;指派车辆及司机&nbsp;<a
			href="javascript:void(0);" onclick="javascript:add_sp();">添加</a></td>
		<td>&nbsp;<div id="fs_clsqd"></div></td>
	</tr>
</table>
</fieldset>
<script>
initExtComponents();
</script>
</form>
</body>
</html>
